package com.haizhi.storage;

import java.util.List;

public interface StorageService {

    String getUpLocation();

    String getDownLocation();

    String getTmpLocation();

    void storageInit();

    List<String> loadAllUpload();

    String getFileMD5(String filename);

    DownloadInfo findDownloadOne(String filename);

    boolean saveDownload(String fileName, String fileBase64, String md5);

    boolean saveDownload(DownloadInfo downloadInfo);

    boolean deleteAllDown();

    boolean saveAllDown(List<DownloadInfo> downloadInfoList);

    UploadInfo findUploadOne(String filename);

    boolean saveUpload(String fileName, String fileBase64, String md5);

    boolean saveUpload(UploadInfo uploadInfo);

    boolean deleteAllUp();

    boolean saveAllUp(List<UploadInfo> uploadInfoList);
}
